﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace EFCoreLenarn
{
    [Table("T_Books")]
    public class Book
    {
        public long Id { get; set; }

        [StringLength(50),Required]
        public string? Title { get; set; }

        public DateTime PubTime { get; set; }

        public double Price { get; set; }
        [StringLength(20), Required]
        public string? AuthorName { get; set; }

        [StringLength(200)]
        public string? Description { get; set; }
        public bool IdDeleted { get; set; }
    }
}
